#pragma strict
var targets: boolean = true;
function OnTriggerEnter (other : Collider) {
    if(other.tag == "PlayerBullet" && targets){
	    print ("hit!");
	    Destroy(other.gameObject);
	    
	   
	    
	    var EnemySettings: EnemySettings = GameObject.Find("EnemyController").GetComponent(EnemySettings);
	    var PlayerFires: PlayerFires = GameObject.Find("ShipPrefab").GetComponent(PlayerFires);
	    PlayerFires.fires = true;
	    EnemySettings.removeAlien(gameObject);
	    targets = false;
    }
}